[id].vue 48 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151
  1. <template>
  2. <div>
  3. <HomePageHead></HomePageHead>
  4. <HomePageNavigation></HomePageNavigation>
  5. <HomeAdvertising :imgurl="adImg1" v-if="adImg1"></HomeAdvertising>
  6. <!-- 面包屑导航 -->
  7. <div class="breadcrumb phone_none">
  8. <div class="inner">
  9. <span class="location">当前位置:</span>
  10. <el-breadcrumb :separator-icon="ArrowRight">
  11. <el-breadcrumb-item>
  12. <NuxtLink to="/">首页</NuxtLink>
  13. </el-breadcrumb-item>
  14. <el-breadcrumb-item>
  15. <NuxtLink :to="`/${parent_pinyin}/index.html`"> {{ parent_name }}</NuxtLink>
  16. </el-breadcrumb-item>
  17. <el-breadcrumb-item>招聘详情</el-breadcrumb-item>
  18. </el-breadcrumb>
  19. </div>
  20. </div>
  21. <div class="breadcrumb_box pc_none">
  22. <span class=" ">当前位置:</span>
  23. <NuxtLink to="/">首页</NuxtLink>
  24. <span class=" ">&gt;</span>
  25. <NuxtLink :to="`/${parent_pinyin}/index.html`"> {{ parent_name }}</NuxtLink>
  26. <span class=" ">&gt;</span>
  27. <span class=" ">招聘详情 </span>
  28. </div>
  29. <!-- 简历 -->
  30. <!-- <main class="gerenjianli" v-if="type == 2">
  31. <section class="index_1 clearfix">
  32. <div class="seek_head_box clearfix">
  33. <div class="seek_head_left">
  34. <a class="seek_head_a seek_head_only" title="">个人简历</a>
  35. </div>
  36. <div class="seek_head_right_box clearfix">
  37. <span class="seek_head_right_text">更新时间:{{ jobInfo.created_at }}</span>
  38. </div>
  39. </div>
  40. <div class="index_1_left clearfix">
  41. <div class="seek_introduce_box clearfix">
  42. <div class="seek_introduce_left clearfix">
  43. <div class="seek_introduce_head clearfix">
  44. <h4 class="seek_introduce_h4">{{ jobInfo.name }}</h4>
  45. <div class="seek_introduce_tag clearfix" v-if="resume">此简历已被推荐</div>
  46. <div class="seek_introduce_text clearfix" v-if="resume">
  47. (已有单位把本简历加入人才库)
  48. </div>
  49. </div>
  50. <div class="seek_introduce_title_box clearfix">
  51. <span class="seek_introduce_label">期望岗位:</span>
  52. <span class="seek_introduce_title">{{ jobInfo.jtzw_name }}</span>
  53. <span class="seek_introduce_label">薪资待遇:</span>
  54. <span class="seek_introduce_title">{{ jobInfo.salary_name }}</span>
  55. </div>
  56. </div>
  57. </div>
  58. <div class="seek_introduce_foot clearfix">
  59. <span class="seek_introduce_foot_text" v-if="jobInfo.sexy">
  60. {{ jobInfo.sexy == 1 ? '男' : '女' }}
  61. </span>
  62. <span class="seek_introduce_foot_text" v-if="jobInfo.birth">
  63. {{ getTime(jobInfo.birth, 'year', 0) }}
  64. </span>
  65. <span class="seek_introduce_foot_text" v-if="jobInfo.origin">
  66. 籍贯:{{ jobInfo.origin }}
  67. </span>
  68. <span class="seek_introduce_foot_text" v-if="jobInfo.education_name">
  69. {{ jobInfo.education_name }}
  70. </span>
  71. <span class="seek_introduce_foot_text" v-if="jobInfo.experience_name">
  72. {{ jobInfo.experience_name }}
  73. </span>
  74. <span class="seek_introduce_foot_text" v-if="jobInfo.hunt_cityname">
  75. 工作地点:{{ jobInfo.hunt_cityname }}
  76. </span>
  77. <span class="seek_introduce_foot_text" v-if="jobInfo.language_name">
  78. {{ jobInfo.language_name }}
  79. </span>
  80. </div>
  81. </div>
  82. <div class="index_1_right clearfix">
  83. <img class="index_1_right_img" src="@/public/image/touxiang.png" title="" alt=""
  84. v-if="!jobInfo.imgurl">
  85. <img class="index_1_right_img" :src="jobInfo.imgurl" title="" alt="" v-if="jobInfo.imgurl">
  86. </div>
  87. </section>
  88. </main> -->
  89. <!-- <main class="jianli" v-if="type == 2">
  90. <section class="index_2 clearfix">
  91. <div class="seek_head_box clearfix">
  92. <div class="seek_head_left">
  93. <a class="seek_head_a seek_head_only" title="">自我介绍</a>
  94. </div>
  95. </div>
  96. <article class="seek_article">
  97. {{ jobInfo.self_evaluation }}
  98. </article>
  99. </section>
  100. <section class="index_3 clearfix">
  101. <div class="seek_head_box clearfix">
  102. <div class="seek_head_left">
  103. <a class="seek_head_a seek_head_only" title="">工作经历</a>
  104. </div>
  105. </div>
  106. <div class="seek_in clearfix" v-for="(item, index) in experienceInfo" :key="index">
  107. <div class="seek_in_head clearfix">
  108. <span class="seek_in_head_text">{{ index + 1 }}.{{ item.company_name }}</span>
  109. <span class="seek_in_head_text">
  110. 职位类别:
  111. {{ item.zw_name }}
  112. </span>
  113. <span class="seek_in_head_text">
  114. 具体职位:
  115. {{ item.jtzw_name }}
  116. </span>
  117. <span class="seek_in_head_text" style="float: right;" v-if="item.job_timeList">
  118. {{ getTime(item.job_timeList[0], 'year', 0) }}
  119. -
  120. {{ getTime(item.job_timeList[1], 'year', 0) }}
  121. </span>
  122. </div>
  123. <div class="seek_in_ul clearfix">
  124. <div class="seek_in_li clearfix">
  125. <label class="seek_in_label">工作内容:</label>
  126. <div class="seek_in_li_text">{{ item.job_content }}</div>
  127. </div>
  128. <div class="seek_in_li clearfix">
  129. <label class="seek_in_label">工作业绩:</label>
  130. <div class="seek_in_li_text">{{ item.performance }}</div>
  131. </div>
  132. </div>
  133. </div>
  134. </section>
  135. <section class="index_4 clearfix">
  136. <div class="seek_head_box clearfix">
  137. <div class="seek_head_left">
  138. <a class="seek_head_a seek_head_only" title="">教育背景</a>
  139. </div>
  140. </div>
  141. <div class="seek_in clearfix" v-for="(item, index) in education" :key="index">
  142. <div class="seek_in_head clearfix">
  143. <span class="seek_in_head_text"
  144. v-if="item.school_name || item.education_name || item.school_major || item.school_timeList">
  145. {{ index + 1 }}. {{ item.school_name }} {{ education }}
  146. </span>
  147. <span class="seek_in_head_text">
  148. {{ item.education_name }}
  149. </span>
  150. <span class="seek_in_head_text">{{ item.school_major }}</span>
  151. <span class="seek_in_head_text" style="float: right;" v-if="item.school_timeList">
  152. {{ getTime(item.school_timeList[0], 'year', 0) }}
  153. -
  154. {{ getTime(item.school_timeList[1], 'year', 0) }}
  155. </span>
  156. </div>
  157. <div class="seek_in_ul clearfix" v-if="item.school_experience">
  158. <div class="seek_in_li clearfix">
  159. <label class="seek_in_label">在校经历:</label>
  160. <div class="seek_in_li_text">{{ item.school_experience }}</div>
  161. </div>
  162. </div>
  163. </div>
  164. </section>
  165. <section class="index_5 clearfix">
  166. <div class="seek_head_box clearfix">
  167. <div class="seek_head_left">
  168. <a class="seek_head_a seek_head_only" title="">专业技能</a>
  169. </div>
  170. </div>
  171. <div class="seek_in clearfix">
  172. <div class="seek_in_ul clearfix">
  173. <div class="seek_in_li clearfix" v-for="(item, index) in skillList">
  174. <label class="seek_in_label" v-if="item.skill">{{ index + 1 }}.</label>
  175. <div class="seek_in_li_text">{{ item.skill }}</div>
  176. </div>
  177. </div>
  178. </div>
  179. </section>
  180. <section class="index_6 clearfix">
  181. <div class="seek_head_box clearfix">
  182. <div class="seek_head_left">
  183. <a class="seek_head_a seek_head_only" title="">联系方式</a>
  184. </div>
  185. </div>
  186. <div class="seek_in clearfix" v-if="type_id == 10000 || type_id == 3">
  187. <article class="seek_article_2">
  188. {{ jobInfo.phone }}
  189. </article>
  190. </div>
  191. <div class="seek_in clearfix" v-else>
  192. <article class="seek_article_2">
  193. 登录后可查看
  194. </article>
  195. </div>
  196. </section>
  197. </main> -->
  198. <!-- 岗位 -->
  199. <div class="gangwei" v-if="type == 1">
  200. <main class="color_main">
  201. <main class="index_main">
  202. <section class="index_1 clearfix">
  203. <div class="cruit_head_box clearfix phone_none">
  204. <div class="cruit_head_left">
  205. <a class="cruit_head_a cruit_head_only" title="">基本信息</a>
  206. </div>
  207. </div>
  208. <div class="phone_box_1 pc_none">
  209. <div class="phone_box_1_head">
  210. <a title="">基本信息</a>
  211. </div>
  212. </div>
  213. <div class="index_1_box clearfix">
  214. <div class="demand_head_box clearfix">
  215. <div class="demand_head_name">{{ jobInfo.title }}</div>
  216. <div class="demand_head_btn hand" v-if="type_id == 1" @click="applyJob">申请该职位</div>
  217. <div class="demand_head_btn1" v-if="type_id != 1">申请该职位</div>
  218. <div class="phone_head_btn_box pc_none">
  219. <div class="phone_head_btn "> 申请该职位 </div>
  220. </div>
  221. </div>
  222. <div class="cruit_li_2_foot clearfix">
  223. <span class="cruit_li_2_foot_tag cruit_li_2_foot_exper">
  224. {{ jobInfo.hy_name }}
  225. &gt;
  226. {{ jobInfo.zw_name }}
  227. </span>
  228. <span class="cruit_li_2_foot_tag cruit_li_2_foot_addres">{{ jobInfo.city_name }}</span>
  229. </div>
  230. </div>
  231. </section>
  232. </main>
  233. </main>
  234. <main class="index_main">
  235. <section class="index_2 clearfix">
  236. <div class="demand_1 clearfix">
  237. <div class="demand_left_1 clearfix">
  238. <div class="cruit_head_box clearfix">
  239. <div class="cruit_head_left">
  240. <a class="cruit_head_a cruit_head_only" title="">基本要求</a>
  241. </div>
  242. </div>
  243. <div class="phone_box_1 pc_none">
  244. <div class="phone_box_1_head">
  245. <a title="">基本要求</a>
  246. </div>
  247. </div>
  248. <div class="demand_ul_2">
  249. <div class="demand_li_2 clearfix">
  250. <div class="demand_li_2_label">工作性质:</div>
  251. <div class="demand_li_2_text clearfix">{{ jobInfo.job_nature_name }}</div>
  252. </div>
  253. <div class="demand_li_2 clearfix">
  254. <div class="demand_li_2_label">工作经验:</div>
  255. <div class="demand_li_2_text clearfix">{{ jobInfo.experience_name }}</div>
  256. </div>
  257. <div class="demand_li_2 clearfix">
  258. <div class="demand_li_2_label">学历文凭:</div>
  259. <div class="demand_li_2_text clearfix">{{ jobInfo.education_name }}</div>
  260. </div>
  261. <div class="demand_li_2 clearfix">
  262. <div class="demand_li_2_label">语言选择:</div>
  263. <div class="demand_li_2_text clearfix">{{ jobInfo.language_name }}</div>
  264. </div>
  265. <div class="demand_li_2 clearfix">
  266. <div class="demand_li_2_label">薪资待遇:</div>
  267. <div class="demand_li_2_text clearfix">{{ jobInfo.salary_name }}</div>
  268. </div>
  269. <div class="demand_li_2 clearfix">
  270. <div class="demand_li_2_label">截止日期:</div>
  271. <div class="demand_li_2_text clearfix">
  272. {{ getTime(jobInfo.created_at, 'year', 1) }}
  273. </div>
  274. </div>
  275. </div>
  276. </div>
  277. <div class="demand_left_2 clearfix">
  278. <div class="cruit_head_box clearfix">
  279. <div class="cruit_head_left">
  280. <a class="cruit_head_a cruit_head_only" title="">岗位职责</a>
  281. </div>
  282. </div>
  283. <div class="phone_box_3 pc_none">
  284. <div class="phone_box_1_head">
  285. <a title="">岗位职责</a>
  286. </div>
  287. </div>
  288. <article class="demand_article_1">
  289. {{ jobInfo.description }}
  290. </article>
  291. </div>
  292. <div class="demand_left_3 clearfix">
  293. <div class="cruit_head_box clearfix">
  294. <div class="cruit_head_left">
  295. <a class="cruit_head_a cruit_head_only" title="">具体要求</a>
  296. </div>
  297. </div>
  298. <div class="phone_box_4 pc_none">
  299. <div class="phone_box_1_head">
  300. <a title="">具体要求</a>
  301. </div>
  302. </div>
  303. <article class="demand_article_1">
  304. {{ jobInfo.jt_description }}
  305. </article>
  306. </div>
  307. <div class="demand_left_4 clearfix">
  308. <div class="cruit_head_box clearfix">
  309. <div class="cruit_head_left">
  310. <a class="cruit_head_a cruit_head_only" title="">联系方式</a>
  311. </div>
  312. </div>
  313. <div class="phone_box_5 pc_none">
  314. <div class="phone_box_1_head">
  315. <a title="">公司信息</a>
  316. </div>
  317. </div>
  318. <div class="demand_ul_2">
  319. <div class="demand_li_2 clearfix">
  320. <div class="demand_li_2_label">地址:</div>
  321. <div class="demand_li_2_text clearfix">{{ companyInfo.address_name }}</div>
  322. </div>
  323. <div class="demand_li_2 clearfix">
  324. <div class="demand_li_2_label">邮箱:</div>
  325. <div class="demand_li_2_text clearfix">{{ companyInfo.email }}</div>
  326. </div>
  327. <div class="demand_li_2 clearfix pc_none">
  328. <div class="demand_li_2_label">公司规模:</div>
  329. <div class="demand_li_2_text clearfix">{{ companyInfo.company_size_name }}</div>
  330. </div>
  331. <div class="demand_li_2 clearfix pc_none">
  332. <div class="demand_li_2_label">公司性质:</div>
  333. <div class="demand_li_2_text clearfix">{{ companyInfo.company_nature_name }}</div>
  334. </div>
  335. <div class="demand_li_2 clearfix pc_none">
  336. <div class="demand_li_2_label">公司行业:</div>
  337. <div class="demand_li_2_text clearfix">{{ companyInfo.hy_name }}</div>
  338. </div>
  339. </div>
  340. </div>
  341. <div class="demand_left_5 clearfix phone_none">
  342. <div class="cruit_head_box clearfix phone_none">
  343. <div class="cruit_head_left">
  344. <a class="cruit_head_a cruit_head_only" title="">公司介绍</a>
  345. </div>
  346. </div>
  347. <div class="demand_ul_2">
  348. <div class="demand_li_2 clearfix">
  349. <div class="demand_li_2_label">公司规模:</div>
  350. <div class="demand_li_2_text clearfix">{{ companyInfo.company_size_name }}</div>
  351. </div>
  352. <div class="demand_li_2 clearfix">
  353. <div class="demand_li_2_label">公司性质:</div>
  354. <div class="demand_li_2_text clearfix">{{ companyInfo.company_nature_name }}</div>
  355. </div>
  356. <div class="demand_li_2 clearfix">
  357. <div class="demand_li_2_label">公司行业:</div>
  358. <div class="demand_li_2_text clearfix">{{ companyInfo.hy_name }}</div>
  359. </div>
  360. </div>
  361. </div>
  362. <div class="demand_left_6 clearfix pc_none">
  363. <div class="phone_box_6 pc_none">
  364. <div class="phone_box_1_head">
  365. <a title="">联系方式</a>
  366. </div>
  367. </div>
  368. <div class="demand_ul_2">
  369. <div class="demand_li_2 clearfix">
  370. <div class="demand_li_2_label">地址:</div>
  371. <div class="demand_li_2_text clearfix">{{ companyInfo.address_name }}</div>
  372. </div>
  373. <div class="demand_li_2 clearfix">
  374. <div class="demand_li_2_label">邮箱:</div>
  375. <div class="demand_li_2_text clearfix">{{ companyInfo.email }}</div>
  376. </div>
  377. </div>
  378. </div>
  379. <div class="demand_left_7 clearfix pc_none">
  380. <div class="phone_box_7 pc_none">
  381. <div class="phone_box_1_head">
  382. <a title="">招聘单位</a>
  383. </div>
  384. </div>
  385. <div class="demand_ul_1">
  386. <span class="demand_ul_1_span dot1">
  387. {{ companyInfo.business_name }}
  388. </span>
  389. </div>
  390. </div>
  391. <div class="demand_left_8 clearfix pc_none">
  392. <div class="phone_box_8 pc_none">
  393. <div class="phone_box_1_head">
  394. <a title="">其他职位</a>
  395. </div>
  396. </div>
  397. <div class="demand_ul_1">
  398. <NuxtLink class="phone_ul_a dot1" :href="`/${item.pinyin}/${item.id}.html`" title=""
  399. v-for="(item, index) in other_job" :key="item.id">
  400. {{ item.title }}
  401. </NuxtLink>
  402. </div>
  403. </div>
  404. </div>
  405. <div class="demand_2 clearfix phone_none">
  406. <div class="demand_right_1 clearfix">
  407. <div class="cruit_head_box clearfix">
  408. <div class="cruit_head_left">
  409. <a class="cruit_head_a cruit_head_only" title="">招聘单位</a>
  410. </div>
  411. </div>
  412. <div class="phone_box_1 pc_none">
  413. <div class="phone_box_1_head">
  414. <a title="">招聘单位</a>
  415. </div>
  416. </div>
  417. <div class="demand_ul_1">
  418. <span class="demand_ul_1_span dot1">
  419. {{ companyInfo.business_name }}
  420. </span>
  421. </div>
  422. </div>
  423. <div class="demand_right_2 clearfix">
  424. <div class="cruit_head_box clearfix">
  425. <div class="cruit_head_left">
  426. <a class="cruit_head_a cruit_head_only" title="">其他职位</a>
  427. </div>
  428. </div>
  429. <div class="phone_box_8 pc_none">
  430. <div class="phone_box_1_head">
  431. <a title="">其他职位</a>
  432. </div>
  433. </div>
  434. <div class="demand_ul_1">
  435. <NuxtLink class="demand_ul_1_a dot1" :href="`/${item.pinyin}/${item.id}.html`" title=""
  436. v-for="(item, index) in other_job" :key="item.id">
  437. {{ item.title }}
  438. </NuxtLink>
  439. </div>
  440. </div>
  441. </div>
  442. </section>
  443. </main>
  444. </div>
  445. <HomeAdvertising :imgurl="adImg2" v-if="adImg2"></HomeAdvertising>
  446. <HomeFoot1></HomeFoot1>
  447. </div>
  448. </template>
  449. <script setup>
  450. import { ref, reactive } from 'vue'
  451. import { ElBreadcrumb, ElBreadcrumbItem, ElMessage } from 'element-plus'
  452. import { ArrowRight } from '@element-plus/icons-vue'
  453. const route = useRoute();
  454. const type = ref(1);
  455. const nuxtApp = useNuxtApp();
  456. const axios = nuxtApp.$axios;
  457. //获取用户信息
  458. let type_id = ref('')
  459. let website_id = ref('')
  460. let getUserInfo = () => {
  461. axios.get("/user/getUserInfo").then(response => {
  462. console.log("gettypeid", response.data);
  463. type_id.value = response.data.type_id
  464. website_id.value = response.data.website_id
  465. })
  466. }
  467. onMounted(() => {
  468. getUserInfo()
  469. })
  470. //1.1 获得跳转过来的id
  471. const articleId = parseInt(route.params.id); //获得该页面的id
  472. // const existingArr = [];
  473. const articleIdArr = reactive([articleId]);
  474. // let articleIdArr = Array.of(articleId);
  475. // console.log('111222111', articleId);
  476. //1.2 获得父级栏目的名称、id
  477. //获得当前的完整路径
  478. const fullPath = route.path;
  479. //拆分,取出来中间这一段,然后提取数字部分
  480. const segments = fullPath.split('/');
  481. const targetSegment = segments[1];
  482. const targetRoute = segments[2];
  483. console.log("targetSegment1", targetSegment);
  484. console.log("targetSegment2", targetRoute);
  485. let routeId;
  486. //通过导航路径反向查询导航id
  487. const getRouteId = await requestDataPromise('/web/getWebsiteRoute', {
  488. method: 'GET',
  489. query: {
  490. 'pinyin': targetSegment,
  491. },
  492. });
  493. if (getRouteId.code == 200) {
  494. routeId = getRouteId.data.category_id
  495. } else {
  496. // console.log("SSR waring ---------- SSR waring ---------- SSR waring ---------->")
  497. // console.log("错误位置:通过url路径查询导航池id")
  498. // console.log("后端错误反馈:", getRouteId.message)
  499. // console.log("SSR waring ---------- SSR waring ---------- SSR waring ---------->")
  500. }
  501. //1.3 面包屑导航
  502. const parent_name = ref("");
  503. const parent_id = ref("");
  504. const parent_pinyin = ref("");
  505. let getParentNav = async () => {
  506. const listData = await requestDataPromise('/web/getOneWebsiteCategory', {
  507. method: 'GET',
  508. query: {
  509. 'catid': routeId
  510. },
  511. });
  512. if (listData.code == 200) {
  513. parent_name.value = listData.data.alias;
  514. parent_id.value = listData.data.parent_id;
  515. parent_pinyin.value = listData.data.aLIas_pinyin;
  516. } else {
  517. // console.log("SSR waring ---------- SSR waring ---------- SSR waring ---------->")
  518. // console.log("错误位置:获取面包屑导航")
  519. // console.log("后端错误反馈:", listData.message)
  520. // console.log("SSR waring ---------- SSR waring ---------- SSR waring ---------->")
  521. }
  522. }
  523. //获得父级栏目详情
  524. getParentNav();
  525. //1.4 展示广告
  526. let adImg1 = ref({})
  527. let adImg2 = ref({})
  528. onMounted(async () => {
  529. //从客户端获取行政职能部门 加快打开速度
  530. const { $webUrl, $CwebUrl } = useNuxtApp();
  531. //广告1
  532. let url = `${$webUrl}/web/getWebsiteAdvertisement?ad_tag=nmgw_detail_0001`
  533. const responseAd1 = await fetch(url, {
  534. headers: {
  535. 'Content-Type': 'application/json',
  536. 'Userurl': $CwebUrl,
  537. 'Origin': $CwebUrl
  538. }
  539. });
  540. const resultAd1 = await responseAd1.json();
  541. adImg1.value = resultAd1.data[0];
  542. //广告2
  543. let url2 = `${$webUrl}/web/getWebsiteAdvertisement?ad_tag=nmgw_detail_0002`
  544. const responseAd2 = await fetch(url2, {
  545. headers: {
  546. 'Content-Type': 'application/json',
  547. 'Userurl': $CwebUrl,
  548. 'Origin': $CwebUrl
  549. }
  550. });
  551. const resultAd2 = await responseAd2.json();
  552. adImg2.value = resultAd2.data[0];
  553. })
  554. // 2 获取详情
  555. let jobInfo = ref([]) //基本信息
  556. let companyInfo = ref([])// 公司介绍
  557. let category = ref([]) // 栏目
  558. let other_job = ref([]) // 岗位
  559. let experienceInfo = ref([]) // 工作经历
  560. let education = ref([]) // 教育背景
  561. let skillList = ref([]) // 专业技能
  562. let resume = ref(0)
  563. const getDetail = async () => {
  564. const listData = await requestDataPromise('/web/getWebsiteJobInfo', {
  565. method: 'GET',
  566. query: {
  567. 'id': articleId,
  568. 'type': type.value,
  569. 'pageSize': 10,
  570. },
  571. });
  572. if (listData.code == 200) {
  573. console.log("详情1111", listData.data);
  574. // console.log("详情1111222", listData.data.job[0].job_experience);
  575. // console.log("详情111122233", JSON.parse(listData.data.job[0].job_experience));
  576. // console.log("详情1111222233344", JSON.parse(listData.data.job[0].education_experience));
  577. // jobInfo.value = listData.data.job[0];
  578. // category.value = listData.data.category;
  579. if (type.value == 1) {
  580. jobInfo.value = listData.data.job[0];
  581. category.value = listData.data.category;
  582. companyInfo.value = listData.data.company[0];
  583. other_job.value = listData.data.other_job;
  584. }
  585. if (type.value == 2) {
  586. jobInfo.value = listData.data.job[0];
  587. category.value = listData.data.category;
  588. experienceInfo.value = listData.data.job_experience;
  589. education.value = listData.data.education_experience;
  590. skillList.value = JSON.parse(listData.data.job[0].skillList);
  591. resume.value = listData.data.resume;
  592. }
  593. }
  594. }
  595. getDetail();
  596. //获取行业 职位 具体职位
  597. const industry_categoryList = ref([]) //行业类别列表
  598. const position_categoryList = ref([]) //职位类别列表
  599. const positionList = ref([]) //具体职位列表
  600. const getData = async () => {
  601. const getData = await requestDataPromise('/web/getWebsiteJobSelect', {
  602. method: 'GET',
  603. query: {},
  604. });
  605. if (getData.code == 200) {
  606. // console.log("获取到的分类数据:", getData.data);
  607. industry_categoryList.value = getData.data.hy; //行业
  608. position_categoryList.value = getData.data.zw; //职位
  609. positionList.value = getData.data.jtzw; //具体职位
  610. }
  611. }
  612. getData()
  613. // 3 申请该职位
  614. const applyJob = () => {
  615. // console.log("点击了申请该职位", typeof website_id.value);
  616. // console.log("点击了申请该职位", articleIdArr);
  617. axios.post('/web/getWebsiteJobApply', {
  618. website_id: website_id.value,
  619. recruit_id: articleIdArr,
  620. }).then(response => {
  621. // console.log("申请该职位11111111", response);
  622. if (response.code == 200) {
  623. ElMessage({
  624. message: '申请成功',
  625. type: 'success',
  626. });
  627. } else {
  628. ElMessage({
  629. message: response.message,
  630. type: 'error',
  631. });
  632. }
  633. }).catch(error => {
  634. console.error('Error:', error);
  635. });
  636. }
  637. //4.设置seo信息 start---------------------------------------->
  638. //4.1 设置seo信息
  639. let seoTitle;
  640. let seoDescription;
  641. let seoKeywords;
  642. const listData = await requestDataPromise('/web/getWebsiteJobInfo', {
  643. method: 'GET',
  644. query: {
  645. 'id': articleId,
  646. 'type': type.value,
  647. 'pageSize': 10,
  648. },
  649. });
  650. if (listData.code == 200) {
  651. // console.log("详情1111", listData.data);
  652. seoTitle = listData.data.job[0].title;
  653. seoDescription = listData.data.job[0].seo_description;
  654. seoKeywords = listData.data.job[0].keyword;
  655. }
  656. const setData = await requestDataPromise('/web/getWebsiteCategoryHead', {
  657. method: 'GET',
  658. query: {
  659. 'catid': routeId,
  660. },
  661. });
  662. if (setData.code == 200) {
  663. let seoSuffix = setData.data.suffix;
  664. let seoName = setData.data.website_name;
  665. useSeoMeta({
  666. title: seoTitle + "_" + seoName + "_" + seoSuffix,
  667. meta: [
  668. { name: 'description', content: seoDescription + "_" + seoName + "_" + seoSuffix, tagPriority: 10 },
  669. { name: 'keywords', content: seoKeywords + "_" + seoName + "_" + seoSuffix, tagPriority: 10 },
  670. { name: 'viewport', content: 'width=device-width,initial-scale=1,user-scalable=no',tagPriority: 10 }
  671. ]
  672. });
  673. } else {
  674. // console.log("SSR waring ---------- SSR waring ---------- SSR waring ---------->")
  675. // console.log("错误位置:设置列表页面SEO数据")
  676. // console.log("后端错误反馈:", setData.message)
  677. // console.log("SSR waring ---------- SSR waring ---------- SSR waring ---------->")
  678. }
  679. //4.设置seo信息 end---------------------------------------->
  680. </script>
  681. <style scoped lang="less">
  682. @import "@/assets/css/zgzpjianli.less";
  683. @import "@/assets/css/zgzpzhaopin.less";
  684. </style>
  685. <style lang="less" scoped>
  686. @media screen and (min-width:801px){/*pc*/
  687. .pc_none{display:none;}
  688. }
  689. @media screen and (max-width:800px){/*ipad_phone*/
  690. .breadcrumb_box {
  691. height: 22px;
  692. width: 92%;
  693. margin: 10px auto;
  694. word-break: keep-all;
  695. white-space: nowrap;
  696. overflow: hidden;
  697. text-overflow: ellipsis;
  698. width: 92%;
  699. font-size: 14px;
  700. color: #666;
  701. * {
  702. font-size: 14px;
  703. display: inline;
  704. color: #666;
  705. line-height: 22px;
  706. height: 22px;
  707. margin-right: 5px;
  708. }
  709. }
  710. .gangwei{margin-top:0px;}
  711. .index_main{
  712. width: 92%;
  713. margin: 0 auto;
  714. }
  715. .index_1{ width: 100%; }
  716. .index_1{ margin-top:0px;}
  717. .demand_1{width:100%;float:none;}
  718. .demand_li_2{margin-bottom:4px;}
  719. .demand_li_2_label{font-size:14px;}
  720. .demand_li_2_text{font-size:14px;}
  721. .demand_ul_2{margin-top:12px;}
  722. .cruit_li_2_foot{margin-bottom:0px;margin-top:16px;}
  723. .demand_left_1{ padding-bottom:11px; }
  724. .demand_left_2{ padding-bottom:11px;margin-top:0px;}
  725. .demand_left_3{ padding-bottom:11px;margin-top:0px;}
  726. .demand_left_4{ padding-bottom:11px;margin-top:0px;}
  727. .demand_left_5{padding-bottom:11px;margin-top:0px;}
  728. .demand_left_6{ padding-bottom:11px;margin-top:0px;}
  729. .demand_left_7{ padding-bottom:11px;margin-top:0px;}
  730. .demand_left_8{ padding-bottom:11px;margin-top:0px;}
  731. .demand_head_name{margin-top:12px;font-size:16px;}
  732. .cruit_li_2_foot_tag{
  733. background-size: 16px 70%;
  734. padding-left:18px; font-size:12px;
  735. margin-right:13px;
  736. }
  737. .cruit_li_2_foot_tag:nth-last-of-type(1){margin-right:0px;}
  738. .demand_2{float:none;width:100%;}
  739. .phone_box_1 {
  740. .phone_box_1_head {
  741. height: 40px;
  742. line-height: 40px;
  743. background: #fff;
  744. border-bottom: 1px solid #E6E6E6;
  745. width: 100%;
  746. a {
  747. float: left;
  748. height: 40px;
  749. line-height: 40px;
  750. margin: 0;
  751. position: relative;
  752. color: #489d97;
  753. font-size: 16px;
  754. font-weight: bold;
  755. box-sizing: border-box;
  756. position: relative;
  757. padding-left: 8px;
  758. }
  759. a::before {
  760. content: '';
  761. display: block;
  762. position: absolute;
  763. left: 0px;
  764. top: 12px;
  765. background: linear-gradient(to top, #0998A9, #6ADDD6);
  766. width: 3px;
  767. height: 15px;
  768. }
  769. }
  770. }
  771. .phone_box_2 {
  772. margin: 0px auto 0px;
  773. .phone_box_1_head {
  774. height: 40px;
  775. line-height: 40px;
  776. background: #fff;
  777. border-bottom: 1px solid #E6E6E6;
  778. width: 100%;
  779. a {
  780. float: left;
  781. height: 40px;
  782. line-height: 40px;
  783. margin: 0;
  784. position: relative;
  785. color: #489d97;
  786. font-size: 16px;
  787. font-weight: bold;
  788. box-sizing: border-box;
  789. position: relative;
  790. padding-left: 8px;
  791. }
  792. a::before {
  793. content: '';
  794. display: block;
  795. position: absolute;
  796. left: 0px;
  797. top: 12px;
  798. background: linear-gradient(to top, #0998A9, #6ADDD6);
  799. width: 3px;
  800. height: 15px;
  801. }
  802. }
  803. }
  804. .phone_box_3 {
  805. margin: 0px auto 0px;
  806. .phone_box_1_head {
  807. height: 40px;
  808. line-height: 40px;
  809. background: #fff;
  810. border-bottom: 1px solid #E6E6E6;
  811. width: 100%;
  812. a {
  813. float: left;
  814. height: 40px;
  815. line-height: 40px;
  816. margin: 0;
  817. position: relative;
  818. color: #489d97;
  819. font-size: 16px;
  820. font-weight: bold;
  821. box-sizing: border-box;
  822. position: relative;
  823. padding-left: 8px;
  824. }
  825. a::before {
  826. content: '';
  827. display: block;
  828. position: absolute;
  829. left: 0px;
  830. top: 12px;
  831. background: linear-gradient(to top, #0998A9, #6ADDD6);
  832. width: 3px;
  833. height: 15px;
  834. }
  835. }
  836. }
  837. .phone_box_4 {
  838. margin: 0px auto 0px;
  839. .phone_box_1_head {
  840. height: 40px;
  841. line-height: 40px;
  842. background: #fff;
  843. border-bottom: 1px solid #E6E6E6;
  844. width: 100%;
  845. a {
  846. float: left;
  847. height: 40px;
  848. line-height: 40px;
  849. margin: 0;
  850. position: relative;
  851. color: #489d97;
  852. font-size: 16px;
  853. font-weight: bold;
  854. box-sizing: border-box;
  855. position: relative;
  856. padding-left: 8px;
  857. }
  858. a::before {
  859. content: '';
  860. display: block;
  861. position: absolute;
  862. left: 0px;
  863. top: 12px;
  864. background: linear-gradient(to top, #0998A9, #6ADDD6);
  865. width: 3px;
  866. height: 15px;
  867. }
  868. }
  869. }
  870. .phone_box_5 {
  871. margin: 0px auto 0px;
  872. .phone_box_1_head {
  873. height: 40px;
  874. line-height: 40px;
  875. background: #fff;
  876. border-bottom: 1px solid #E6E6E6;
  877. width: 100%;
  878. a {
  879. float: left;
  880. height: 40px;
  881. line-height: 40px;
  882. margin: 0;
  883. position: relative;
  884. color: #489d97;
  885. font-size: 16px;
  886. font-weight: bold;
  887. box-sizing: border-box;
  888. position: relative;
  889. padding-left: 8px;
  890. }
  891. a::before {
  892. content: '';
  893. display: block;
  894. position: absolute;
  895. left: 0px;
  896. top: 12px;
  897. background: linear-gradient(to top, #0998A9, #6ADDD6);
  898. width: 3px;
  899. height: 15px;
  900. }
  901. }
  902. }
  903. .phone_box_6 {
  904. margin: 0px auto 0px;
  905. .phone_box_1_head {
  906. height: 40px;
  907. line-height: 40px;
  908. background: #fff;
  909. border-bottom: 1px solid #E6E6E6;
  910. width: 100%;
  911. a {
  912. float: left;
  913. height: 40px;
  914. line-height: 40px;
  915. margin: 0;
  916. position: relative;
  917. color: #489d97;
  918. font-size: 16px;
  919. font-weight: bold;
  920. box-sizing: border-box;
  921. position: relative;
  922. padding-left: 8px;
  923. }
  924. a::before {
  925. content: '';
  926. display: block;
  927. position: absolute;
  928. left: 0px;
  929. top: 12px;
  930. background: linear-gradient(to top, #0998A9, #6ADDD6);
  931. width: 3px;
  932. height: 15px;
  933. }
  934. }
  935. }
  936. .phone_box_7 {
  937. margin: 0px auto 0px;
  938. .phone_box_1_head {
  939. height: 40px;
  940. line-height: 40px;
  941. background: #fff;
  942. border-bottom: 1px solid #E6E6E6;
  943. width: 100%;
  944. a {
  945. float: left;
  946. height: 40px;
  947. line-height: 40px;
  948. margin: 0;
  949. position: relative;
  950. color: #489d97;
  951. font-size: 16px;
  952. font-weight: bold;
  953. box-sizing: border-box;
  954. position: relative;
  955. padding-left: 8px;
  956. }
  957. a::before {
  958. content: '';
  959. display: block;
  960. position: absolute;
  961. left: 0px;
  962. top: 12px;
  963. background: linear-gradient(to top, #0998A9, #6ADDD6);
  964. width: 3px;
  965. height: 15px;
  966. }
  967. }
  968. }
  969. .phone_box_8 {
  970. margin: 0px auto 0px;
  971. .phone_box_1_head {
  972. height: 40px;
  973. line-height: 40px;
  974. background: #fff;
  975. border-bottom: 1px solid #E6E6E6;
  976. width: 100%;
  977. a {
  978. float: left;
  979. height: 40px;
  980. line-height: 40px;
  981. margin: 0;
  982. position: relative;
  983. color: #489d97;
  984. font-size: 16px;
  985. font-weight: bold;
  986. box-sizing: border-box;
  987. position: relative;
  988. padding-left: 8px;
  989. }
  990. a::before {
  991. content: '';
  992. display: block;
  993. position: absolute;
  994. left: 0px;
  995. top: 12px;
  996. background: linear-gradient(to top, #0998A9, #6ADDD6);
  997. width: 3px;
  998. height: 15px;
  999. }
  1000. }
  1001. }
  1002. .demand_ul_1{margin-top:12px;}
  1003. .phone_li_line{height:1px;background:#E6E6E6;margin:11px auto;}
  1004. .phone_ul_a{height:21px;line-height:21px;margin-bottom:4px;
  1005. color:#333;font-size:14px;}
  1006. .demand_ul_1_span{margin-bottom:4px;font-size:14px;}
  1007. .demand_article_1{
  1008. margin-top: 12px!important
  1009. }
  1010. .demand_article_1,.demand_article_1 *{
  1011. font-size: 14px!important;
  1012. line-height: 26px!important;
  1013. }
  1014. .demand_article_2{
  1015. margin-top: 12px!important
  1016. }
  1017. .demand_article_2 *,.demand_article_1 *{
  1018. font-size: 14px!important;
  1019. line-height: 26px!important;
  1020. }
  1021. .phone_head_btn_box{background:#fff;position:fixed;left:0px;bottom:0px;
  1022. text-align:center;
  1023. height:55px;width:100%; z-index:1122;
  1024. }
  1025. .phone_head_btn{
  1026. text-align:center;color:#fff;line-height:33px;
  1027. height:33px;display:inline-block; font-size:16px;border-radius:6px;
  1028. margin-top:11px;
  1029. background: url(@/public/image/05.png) no-repeat 8px center #489d97;
  1030. background-size: 18px 18px;
  1031. padding: 0px 15px 0px 35px;
  1032. }
  1033. .phone_foot{height:55px; }
  1034. .phone_none{display:none;}
  1035. }
  1036. </style>